<include file="public@header" />
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('local/index')}">班级</a></li>
        <li class="active"><a href="{:url('local/add')}">班级添加</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('local/addpost')}">
        <div class="form-group">
            <label for="input-name" class="col-sm-2 control-label"><span class="form-required">*</span>班级</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-name" name="name">
            </div>
        </div>
        <div class="form-group">
            <label for="input-user_login" class="col-sm-2 control-label"><span class="form-required">*</span>学生姓名</label>
            <div class="col-md-6 col-sm-10">
                <select name="student_id" id="selectStudent" class="form-control">
                    <option value="0">请选择学生</option>
                    <volist name="$student" id="vo">
                        <if $Request.param.student_id == $vo.id>
                            <option value="{$vo.id}" selected>{$vo.name}</option>
                            <else>
                                <option value="{$vo.id}">{$vo.name}</option>
                            </else>
                        </if>
                    </volist>
                </select>
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>
